import { createRouter, createWebHashHistory } from "vue-router";
/**
 * createWebHistory: 路由history模式，核心就是使用historyAPI
 * createWebHashHistory：路由hash模式，核心是根据url的hash值变化来实现的
 */
import routes from "./routes";

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

router.beforeEach((to, from, next) => {
  next();
});

export default router;

